home *** CD-ROM | disk | FTP | other *** search
- Path: news.citenet.net!usenet
- From: Oliver Lavery <oliver@citenet.net>
- Newsgroups: comp.lang.c
- Subject: Zombies & Daemons
- Date: Wed, 28 Feb 1996 10:56:57 +0000
- Organization: CiteNet Telecom - Commercial Internet Service
- Message-ID: <313434F9.1072@citenet.net>
- NNTP-Posting-Host: g34-210.citenet.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- I've just finished writting a daemon to handle the OCI
- side of generating web pages from an Oracle database. When it executes,
- the parent forks a number of children, all of which are bound to a
- network port. Each child services requests in order etc. etc. works more
- or less like an apache httpd...
-
- The problem is this: when one of the children dies for whatever
- reason (usually a f*cked OCI call which makes the daemons session
- unstable), the parent's SIGCHLD handler forks a new child to keep a
- consistent number of processes running. For some reason, however, the
- dead child lingers around as a zombie process ... how do I avoid this?
-
- Also, does SunOS support copy on write memory pages?
-
- Later,
- Oliver Lavery
- --
- `'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`
- oliver@citenet.net http://www.quebec.net/~oliver/
-
- The dogmas of the quiet past are inadequate in the stormy present.
- - A. Lincoln
- `'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`
-
- -----BEGIN PGP PUBLIC KEY BLOCK-----
- Version: 2.1
-
- mQCNAjDkcmQAAAEEAOkLryuvgyTx/h4lkrtvx5jQSlMQLeCWAJcfVS5DFkR1bna6
- ehPPcIUl4+fF81zR9bJajdrPhGM5wUmSwLxRiWuzapXv0rgB0DlcjeGCCqaOgX5u
- BJfSmKMDGJeRZ20fXJG4zLzVTjoUpQRh1rsUYt8Y4kkhzYA6iJz10yjPhg8BAAUR
- tA1PbGl2ZXIgTGF2ZXJ5
- =XAGz
- -----END PGP PUBLIC KEY BLOCK-----
-